package com.dao.store; 

import com.model.store.MergeModel; 
import java.sql.SQLException;
import java.util.List; 
import java.util.Map; 
import org.apache.ibatis.annotations.Param; 

public interface MergeDao  { 

	/**
	 * 新增
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	int insert(MergeModel mergeModel);

	
	int deleteByFacCode(String facCode);
	
	List<MergeModel> selectByFacCode(String facCode);
	int deleteByTankNum(String tankNum);
	
	List<MergeModel> selectByTankNum(String tankNum);
	
	/**
	 * 刪除
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	int delete(@Param("facCode")String facCode,@Param("tankNum")String tankNum);

	/**
	 * 更新
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	int update(MergeModel mergeModel);

	/**
	 * 查询 根据主键 id 查询
	 * 
	 * @author chenjun
	 * @date 2022/03/10
	 **/
	MergeModel load(@Param("facCode")String facCode,@Param("tankNum")String tankNum);


	// 列表
	List<MergeModel> selectList(Map<String, Object> map);

	// 列表总数
	int selectListCount(Map<String, Object> map);
 }